import request from '@/utils/request'

// 查询翻译记录列表
export function listTranslateHistory(query) {
    return request({
        url: '/business/TranslateHistory/list',
        method: 'get',
        params: query
    })
}

// 查询翻译记录详细
export function getTranslateHistory(translateHistoryId) {
    return request({
        url: '/business/TranslateHistory/' + translateHistoryId,
        method: 'get'
    })
}

// 新增翻译记录
export function addTranslateHistory(data) {
    return request({
        url: '/business/TranslateHistory',
        method: 'post',
        data: data
    })
}

// 修改翻译记录
export function updateTranslateHistory(data) {
    return request({
        url: '/business/TranslateHistory',
        method: 'put',
        data: data
    })
}

// 删除翻译记录
export function delTranslateHistory(translateHistoryId) {
    return request({
        url: '/business/TranslateHistory/' + translateHistoryId,
        method: 'delete'
    })
}
